Fix subspace record bug on HP-UX 10.20.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 13 Feb 2014 17:23:08 +0000 (09:23 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 13 Feb 2014 17:23:08 +0000 (09:23 -0800)
commit726d144320eb1d6d4145c6d59e20d4d06c4a8d81
treec270c79297e6974339f19dc883c82e561ebb04e2
parentf0c7742b21e38b08c5f5204a29432eb23dbc7c2b
Fix subspace record bug on HP-UX 10.20.

* unexhp9k800.c (unexec_error): New function, to simplify the code.
(check_lseek): New function, to report lseek errors.
(save_data_space, update_file_ptrs, read_header, write_header)
(copy_file, copy_rest, unexec): Use these news functions.
(update_file_ptrs): Don't assume wraparound behavior when
converting a large size_t value to off_t.
src/ChangeLog
src/unexhp9k800.c